package com.yuanfeng.action.front.buy.service;

import com.yuanfeng.action.front.buy.dao.BookSearchDao;
import com.yuanfeng.pojo.Books;

/**
 * 图书搜索service
 */
public class BookSearchServiceImpl implements BookSearchService {

	/**
	 * 图书dao依赖注入
	 */
	private BookSearchDao bookSearchDaoImpl ;

	public void setBookSearchDaoImpl(BookSearchDao bookSearchDaoImpl) {
		this.bookSearchDaoImpl = bookSearchDaoImpl;
	}

	/**
	 * 搜索图书
	 * @param bookName
	 * @return
	 */
	@Override
	public Books searchBook(String bookName) {
		return bookSearchDaoImpl.searchBook(bookName);
	}

}
